package com.sigmatrix.h5.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.sigmatrix.h5.feign.args.WechatRedPacketDto;
import com.sigmatrix.h5.feign.mode.WechatRedPacketQueryResponse;
import com.sigmatrix.h5.feign.mode.WechatRedPacketSendingResponse;

@FeignClient(name = "scrm-service")
public interface WechatRedRacketClient {
	@PostMapping(value = {"/api/v1/redPacket"}, consumes = {"application/json;charset=UTF-8"})
	ResponseEntity<WechatRedPacketSendingResponse> redPacket(@RequestBody WechatRedPacketDto arg0);

	@GetMapping(value = {"/api/v1/redPacket/query"}, produces = {"application/json;charset=UTF-8"})
	ResponseEntity<WechatRedPacketQueryResponse> query(@RequestParam("appId") String arg0,
			@RequestParam("merchantBillNo") String arg1);
}